<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/9/5
 * Time: 18:11
 */
$this->title = '添加直播流';
$urlManager = Yii::$app->urlManager;
$this->params['active_nav_group'] = 2;
?>
<div class="panel mb-3">
    <div class="panel-header">直播流设置</div>
    <div><a href="<?= $urlManager->createUrl(['mch/live/actor', 'store_id' => $data['store_id']])?>">创建主播</a></div>
    <div><a href="<?=$urlManager->createUrl(['mch/live/index', 'store_id' => $data['store_id']])?>">直播管理</a></div>
    <div class="panel-body">

        <form class="auto-form" method="post">
            <div class="form-group row">
                <div class="form-group-label col-sm-2 text-right">
                    <label class="col-form-label required">推流</label>
                </div>
                <div class="col-sm-6">
                    <input class="form-control" value="<?= $datainfo->push_stream ?>" name="push_stream">
                </div>
            </div>
            <div class="form-group row">
                <div class="form-group-label col-sm-2 text-right">
                    <label class="col-form-label required">拉流</label>
                </div>
                <div class="col-sm-6">
                    <input class="form-control" value="<?= $datainfo->pull_stream ?>" name="pull_stream">
                </div>
            </div>
            <div class="form-group row">
                <div class="form-group-label col-sm-2 text-right">
                </div>
                <div class="col-sm-6">
                    <a class="btn btn-primary auto-form-btn" href="javascript:">保存</a>
                </div>
            </div>
        </form>

    </div>
</div>